package cn.initcap.designpattern.pattern.structural.composite;

/**
 * @author initcap
 * @date 2018/8/28 AM9:12
 */
public abstract class BaseCatalogComponent {
    public void add(BaseCatalogComponent baseCatalogComponent) {
        throw new UnsupportedOperationException("不支持添加操作");
    }

    public void remove(BaseCatalogComponent baseCatalogComponent) {
        throw new UnsupportedOperationException("不支持删除操作");
    }


    public String getName(BaseCatalogComponent baseCatalogComponent) {
        throw new UnsupportedOperationException("不支持获取名称操作");
    }


    public double getPrice(BaseCatalogComponent baseCatalogComponent) {
        throw new UnsupportedOperationException("不支持获取价格操作");
    }


    public void print() {
        throw new UnsupportedOperationException("不支持打印操作");
    }


}
